//
//  NoteCommentBox.h
//  DogeLegs
//
//  Created by 宋华 on 2017/8/22.
//  Copyright © 2017年 宋华. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NoteCommentMode.h"

#define TEXTLENG 2000


typedef void(^SendCommentBlock)(NSString *comment);

typedef void(^ChangeFrameBlock)(CGFloat top);


@interface NoteCommentBox : UIView


@property(nonatomic,assign)BOOL isDisappear;

@property(nonatomic,assign)NSInteger maxVisibleLine;


@property (nonatomic,copy)SendCommentBlock sendComBlock;

@property (nonatomic,copy)ChangeFrameBlock changeFrameBlock;

@property (nonatomic,copy) dispatch_block_t overflowBlock;      //文本太长

- (BOOL)boxisFirstResponder;

- (void)dismissFirstResponder ;

- (CGFloat )initHeight;

- (void)reverFocus:(NoteCommentMode *)comMode;

@end
